package com.macrounion.atv.listener;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.macrounion.atv.service.service.SendtoService;
import com.macrounion.device.listener.ConnectCallback;

@Component
public class ItuConnectCallback implements ConnectCallback{
	
	@Autowired
	private SendtoService sendtoService;
	
	@Override
	public void connected(String id) {
		sendtoService.updateStatus(id,1);
	}

	@Override
	public void disConnected(String id) {
		sendtoService.updateStatus(id,0);
	}

}
